package com.itttq.sc.bw.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.itttq.sc.po.RiverPo;
@FeignClient(name= "${cspm.server.name}")
public interface IRiverService {
	@RequestMapping(value = "/river/{id}")
	public RiverPo getRiverById(@PathVariable("id") int id);
	
	@RequestMapping(value = "/river/rivers")
	public List<RiverPo> getRivers(RiverPo river);
	
	@RequestMapping(value = "/river/save")
	public void saveRiver(RiverPo river);
	
	@RequestMapping(value = "/river/del/{id}")
	public void delRiver(@PathVariable("id") int id);
}
